package com.nl.model.exception;


/**
 * 基础异常类.
 *
 * @author breggor
 */
public abstract class BaseException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private int code;

    public BaseException(final String message) {
        super(message);
    }

    public BaseException(final String message, final Throwable e) {
        super(message, e);
    }

    public BaseException(final String message, final int code) {
        super(message);
        this.code = code;
    }

    public BaseException(final String message, final Throwable e, final int code) {
        super(message, e);
        this.code = code;
    }

    public BaseException(final Throwable e, final int code) {
        super(e);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(final int code) {
        this.code = code;
    }
}
